let dateServer = function(value) {
    let date = new Date(parseInt(value)*1000);
    let y = date.getFullYear();
    let MM = date.getMonth() + 1;
    MM = MM < 10 ? ('0' + MM) : MM;
    let d = date.getDate();
    d = d < 10 ? ('0' + d) : d;
    return y + '.' + MM + '.' + d;
}

let dateServertwo = function(value) {
    let date = new Date(parseInt(value));
    let y = date.getFullYear();
    let MM = date.getMonth() + 1;
    MM = MM < 10 ? ('0' + MM) : MM;
    let d = date.getDate();
    d = d < 10 ? ('0' + d) : d;
    let h = date.getHours();
    h = h < 10 ? ('0' + h) : h;
    return y + '.' + MM + '.' + d+'.'+h;
}

let min=val=>{
    let m = Math.floor(val / 60);
    m = m < 10 ? "0" + m : m;
    let s = Math.floor(val % 60);
    s = s < 10 ? "0" + s : s;
    return m + "'" + s + '"';
}
export {
    dateServer,
    min,
    dateServertwo
}